<template>
  <div class="wrapper">
    <swiper :options="swiperOption">
      <!-- slides -->
      <swiper-slide v-for="item of pictureList" :key="item.id">
        <img class='swiper-img' alt="圆明园" :src="item.url" >
      </swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"  slot="pagination"></div>
<!--      <div class="swiper-button-prev" slot="button-prev"></div>-->
<!--      <div class="swiper-button-next" slot="button-next"></div>-->
<!--      <div class="swiper-scrollbar"   slot="scrollbar"></div>-->
    </swiper>
  </div>
</template>
<script>
export default {
  name: 'homeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      },
      pictureList: [
        {id: '001', url: 'https://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20201/8216fd250c35366befc35f6353f934b9.jpg_890x330_9062b3ba.jpg'},
        {id: '002', url: 'https://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20201/c219aaecb9b3ad0027580a1009e5c6a5.jpg_890x330_0367eb97.jpg'},
        {id: '003', url: 'https://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20201/4652ae60c4b41658f270219335ef750a.JPG_890x330_31012fb8.jpg'}
      ]
    }
  }
}
</script>
<style lang="stylus" scoped>
  .wrapper>>>.swiper-pagination-bullet-active
    background-color red
  .wrapper
    overflow hidden
    width 100%
    height 0
    padding-bottom 32%
    .swiper-img
      width 100%
    .swiper-pagination
      bottom 0.4rem
</style>
